//package com.example.demo.controller;
package com.example.demo2.controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
//import org.sprintframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.GetMapping;



@RestController
//@RequestMapping("/api/config")
public class hello {
    @GetMapping("/hello")
    public String getMethodName() {
        return "hello to spring";
    }

    @GetMapping("/hello2")
    public String handle(@RequestParam String param) {
        return "Hello"+param+"!";
    }
}
